export default class Lang {
	constructor(langID, lang) {
		this.langID = langID;
		this.lang = lang;
	}

	static parse(biffer) {
		biffer.skip(4); // skip offset table offset
		let [langID, offset] = biffer.unpack('<xxxBl');

		biffer.skip(offset - 4);

		return new Lang(langID, biffer.unpackString());
	}
}